package com.bnsr.pors.zyzl.controllers;

import net.paoding.rose.web.InvocationLocal;
import net.paoding.rose.web.annotation.Path;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.bnsr.pors.common.utils.RandomUtils;

@Path("rw")
public class ResourceWorkController {
	private static Log log = LogFactory.getFactory().getInstance(ResourceWorkController.class);
	@Autowired
	private InvocationLocal inv;
	/**
	 * 资源整理---资源上传界面
	 * @return
	 */
	public String uploadResUI(){
		String resCode = RandomUtils.generateUpperString(32);
		inv.addModel("resCode", resCode);
		log.debug("新生成资源编号："+resCode);
		return "res_upload";
	}
	public String resupload(){
		return "@{\"title\":\"1\",\"title\":\"2\"}";
	}
}
